/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package projetlif13.model;

/**
 *
 * @author theo
 */
public abstract class Game2D extends Game {

    public Game2D(Player _p1, Player _p2) {
        super(_p1, _p2);
    }

    @Override
    public boolean canPlay() {
        for (int x = 0; x < gameBoard.width; x++) {
            for (int y = 0; y < gameBoard.height; y++) {
                if (gameBoard.getState()[x][y][0] == -1) {
                    return true;
                }
            }
        }
        return false;
    }
}
